$summon armor_stand ~ ~ ~ {Marker:true,Invisible:true,Small:true,HandItems:[{id:"$(item)",count:1,components:{"minecraft:max_stack_size":1}},{}],Tags:[summon]}
$execute as @n[tag=summon,type=armor_stand,distance=..1] run function dab:system/register/skill/item_set_skill {slot:"weapon.mainhand",id:"$(skill)"}
execute if data storage dab:system tmep.item_set_skill.item_modifier as @n[tag=summon,type=armor_stand,distance=..1] run function dab:system/register/skill/apply_item_modifier with storage dab:system temp.item_set_skill

loot spawn ~ ~ ~ loot util:motion_item
data modify entity @n[type=item,distance=..1.5,nbt={Item:{components:{"minecraft:custom_data":{motion_item:true}}}}] Item merge from entity @n[tag=summon,type=armor_stand,distance=..1] HandItems[0]
kill @n[tag=summon,type=armor_stand,distance=..1]